<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>1-内置对象</title>
	</head>
	<body>
		<script type="text/javascript">
		     //圆周率
			console.log(Math.PI);//3.141592653589793
			//向下取整
			console.log(Math.floor(5.8));//5
			//向上取整
			console.log(Math.ceil(5.2));//6
			//四舍五入
			console.log(Math.round(3.2));//3
			console.log(Math.round(3.5));//4
			console.log(Math.round(3.8));//4
			//绝对值
			console.log(Math.abs(-8));//8
			//最大值和最小值
			//最大值：
			console.log(Math.max(1,7,3,0,8,6));//8
			//最小值：
			console.log(Math.min(9,4,10,5,32,2));//2
			
		</script>
	</body>
</html>
